<?php
/*
 * 
 * 后台一些公共的操作 比如头部引入
 * 
 * Author:wyouyu  2012-10-18
 */
class wyouyu extends yatou
{
    //后台头部
    function AdminTop()
    {
        global $baseMenuName,$leftNavName;
        $this->tpl->assign('baseMenuName',$baseMenuName);
        $this->tpl->display('admintop.tpl');
    }
    //后台左侧
    function AdminLeft()
    {
        global $leftNavName;
        //获取操作参数
        if(!empty($this->get[2]))
        {
            $action  = $this->get[2];
        }
        else
        {
            $action='base';
        }
        //根据不同的action 调用不同的左侧操作列表
        switch($action)
        {
            case 'navlist':$this->tpl->assign('leftbar',$leftNavName['navlist']);
                break;
            case 'member':$this->tpl->assign('leftbar',$leftNavName['member']);
                break;
            case 'moudle':$this->tpl->assign('leftbar',$leftNavName['moudle']);
                break;
            case 'data':$this->tpl->assign('leftbar',$leftNavName['data']);
                break;
            case 'plugin':$this->tpl->assign('leftbar',$leftNavName['plugin']);
                break;
            case 'sitetool':$this->tpl->assign('leftbar',$leftNavName['sitetool']);
                break;
            default:$this->tpl->assign('leftbar',$leftNavName['base']);
                break;
                
        }
        $this->tpl->display('adminleft.tpl');
    }
    //后台右侧
    function AdminRight()
    {
        $this->tpl->display('adminright.tpl');
    }
    
}
?>
